package ems.dev.easycode.domain.entity;

import java.util.List;

/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/5/24
 * @function 数据库表实体
 */
public class TableEntity {

    /**
     * 表所属的schema
     */
    private String schema;

    /**
     * 表名
     */
    private String name;

    /**
     * 表备注
     */
    private String comment;

    /**
     * 表的字段列表
     */
    private List<ColumnEntity> columns;

    /**
     * 对应的页面号
     */
    private String pageNo;

    public String getSchema() {
        return schema;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<ColumnEntity> getColumns() {
        return columns;
    }

    public void setColumns(List<ColumnEntity> columns) {
        this.columns = columns;
    }

    public String getPageNo() {
        return pageNo;
    }

    public void setPageNo(String pageNo) {
        this.pageNo = pageNo;
    }

    @Override
    public String toString() {
        return "TableEntity{" +
                "schema='" + schema + '\'' +
                ", name='" + name + '\'' +
                ", comment='" + comment + '\'' +
                ", columns=" + columns +
                ", pageNo='" + pageNo + '\'' +
                '}';
    }
}
